﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

/// <summary>
/// Summary description for AcountBOL
/// </summary>
public class AcountBOL
{
	public AcountBOL()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public DataTable LoadAcount()
    {
        AcountDAL aDAL = new AcountDAL();
        try
        {
            return aDAL.LoadAcount();
        }
        catch
        {
            throw;
        }
    }
    public int insertAcount(Acount a)
    {
        AcountDAL aDAL = new AcountDAL();
        try
        {
            return aDAL.insertAcount(a);
        }
        catch
        {
            throw;
        }
        finally
        {
            aDAL = null;
        }
    }
    public int updateAcount(Acount a)
    {
        AcountDAL aDAL = new AcountDAL();
        try
        {
            return aDAL.updateAcount(a);
        }
        catch
        {
            throw;
        }
        finally
        {
            aDAL = null;
        }
    }
    public int deleteAcount(Acount a)
    {
        AcountDAL aDAL = new AcountDAL();
        try
        {
            return aDAL.deleteAcount(a);
        }
        catch
        {
            throw;
        }
        finally
        {
            aDAL = null;
        }
    }
}